def fib(n):
    a, b = 1, 1
    for i in range(n - 1):
        a, b = b, a + b
        print(a)
    return a


# 输出了第10个斐波那契数列
print(fib(10))